package com.brighton.myspring.utils;

import com.alibaba.druid.pool.DruidDataSource;

public class DruidUtils {
    private DruidUtils(){
    }
    private static DruidDataSource druidDataSource = new DruidDataSource();
    static {
        druidDataSource.setDriverClassName("com.mysql.jdbc.Driver");
        druidDataSource.setUrl("jdbc:mysql://localhost:3306/brighton?useUnicode=true&characterEncoding=utf8&useSSL=false&serverTimezone=Hongkong");
        druidDataSource.setUsername("root");
        druidDataSource.setPassword("112233");

    }
    public static DruidDataSource getInstance() {
        return druidDataSource;
    }
}